const { Sequelize, sequelize } = require('./sequelize');

const Student = sequelize.define('Student', {
  sId: {
    type: Sequelize.INTEGER,
    allowNull: false,
    primaryKey: true,
    unique: true,
  },
  sName: {
    type: Sequelize.STRING,
    allowNull: false,
  },
  tcId: {
    type: Sequelize.INTEGER,
    allowNull: false,
    // references: {
    //   model: TheClass,
    //   key: 'tcId',
    // },
  },
}, {
  modelName: 'Student',
  tableName: 'student',
  timestamps: false,
});

module.exports = {
  Student
};
